﻿// 结转
var dataids = ModeList.getCheckedID();
if (dataids == '' || dataids == null) {
    weaJs.alert("请勾选数据!");
} else {
    var params = JSON.stringify({
        ids: dataids, type: 0
    });
    jQuery.ajax({
        url: "/api/market/carryover/unverified/carry/forward",
        dataType: "json",
        async: false,
        contentType: 'application/json',
        type: "POST",
        data: params,
        success: function (data) {
            if (data != '') {
                if (data.errorCode == 1) {
                    //刷新标签页
                    ModeList.reloadTable();
                    window.weaJs.alert(data.msg);
                } else {
                    window.weaJs.alert(data.msg);
                }
            }
        },
        error: function (data) {
            if (data != '') {
                window.weaJs.alert(data.msg);
            }
        }
    });
}